package com.cq.hd.admin.service;

import com.cq.hd.admin.dto.AdminRoleDto;
import com.cq.hd.admin.po.TbAdminRolePo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cq.hd.admin.vo.AdminRoleVo;
import com.cq.hd.common.pagination.Page;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author mYunYu
 * @since 2021-10-28
 */
public interface TbAdminRoleService extends IService<TbAdminRolePo> {

    Page<AdminRoleVo> getAdminRoleList(String name, Integer pageNum, Integer pageSize);

    Object deleteRoleById(Integer id);

    List<TbAdminRolePo> getAllRole();

    void addRole(AdminRoleDto adminRoleDto);

    boolean checkExist(String name);

    void updateAdminRoleById(AdminRoleDto adminRole);

    Set<String> getSetRolesByIds(Integer roleId);
}
